<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改网点信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-networkInfo-edit" th:object="${networkInfo}">
            <input name="id" th:field="*{id}" type="hidden" id="id">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">网点代码：</label>
                <div class="col-sm-8">
                    <input name="networkId" th:field="*{networkId}" class="form-control" type="text" required readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">网点名称：</label>
                <div class="col-sm-8">
                    <input name="networkName" th:field="*{networkName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">网点所在位置：</label>
                <div class="col-sm-8">
                    <input name="networkAddr" th:field="*{networkAddr}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">网点负责人：</label>
                <div class="col-sm-8">
                    <input name="networkPerson" th:field="*{networkPerson}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">网点联系方式：</label>
                <div class="col-sm-8">
                    <input name="networkTrele" th:field="*{networkTrele}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "bus/networkInfo";
        $("#form-networkInfo-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            var id=$("#id").val();
            var url="";
            if(id==""){
                url=prefix + "/add";
            }else{
                url=prefix + "/edit";
            }
            if ($.validate.form()) {
                $.operate.save(url,  $('#form-networkInfo-edit').serialize());
            }
        }
    </script>
</body>
</html>